Log = {
	_deep:1,
	_level:3,
	_returnValue:'',
	setLevel:function(level){
		this._level = level;
	},
	debug:function(content){
		this._deep = 1;
		this._returnValue= '{';
		if(typeof content == 'object'){
			 this.anObj(content);
			return this._returnValue.substring(0,this._returnValue.length-1);
		}else{
			return (content);
		}
	},
	anObj:function(obj){
		for(each in obj){
				if(typeof obj[each] =='object'){
					this._returnValue +='"'+each+'":{';
					if(this._deep<this._level){
						++this._deep;
						this.anObj(obj[each] );
					}else{
						this._returnValue += 'v:"[object]"},';
					}
				}else{
					this._returnValue += '"'+each+'":"'+obj[each]+'",' ;
				}
		}
		--this._deep;
		this._returnValue +='}';
		this._returnValue = this._returnValue.replace(",}","},");
	}
}
